package com.oo.polymorphic_4.drink;

/**
 * Drink--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 15:45
 **/
public class Drink {

    private String name;

    private int capacity;

    public Drink(String name, int capacity) {
        this.name = name;
        this.capacity = capacity;
    }

    public Drink(String name) {
        this.name = name;
    }

    public Drink() {
    }

    protected void buy() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }
}
